home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2001 September / PC-WELT 9-2001.ISO / software / hw / brennen / flask_src.exe / Misc / SelectorDialog.h < prev   
Encoding:
C/C++ Source or Header  |  2000-05-06  |  2.0 KB  |  66 lines

  1. /* 
  2.  *  SelectorDialog.h
  3.  *
  4.  *    Copyright (C) Alberto Vigata - January 2000
  5.  *
  6.  *  This file is part of FlasKMPEG, a free MPEG to MPEG/AVI converter
  7.  *    
  8.  *  FlasKMPEG is free software; you can redistribute it and/or modify
  9.  *  it under the terms of the GNU General Public License as published by
  10.  *  the Free Software Foundation; either version 2, or (at your option)
  11.  *  any later version.
  12.  *   
  13.  *  FlasKMPEG is distributed in the hope that it will be useful,
  14.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16.  *  GNU General Public License for more details.
  17.  *   
  18.  *  You should have received a copy of the GNU General Public License
  19.  *  along with GNU Make; see the file COPYING.  If not, write to
  20.  *  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 
  21.  *
  22.  */
  23.  
  24. #ifndef DIALOG_SELECTOR_H
  25. #define DIALOG_SELECTOR_H
  26.  
  27. #include "..\Misc\CArray.h"
  28.  
  29. #define MAX_SECTIONS 8
  30. #define MAX_STRING_SIZE 128
  31. #define MAX_STRINGS_SEC 1024
  32.  
  33.  
  34. #define MUST_SELECT     0x01
  35. #define SINGLE_SELECT   0X02
  36. #define MULTIPLE_SELECT 0X04
  37. class TSelectorDialog
  38. {
  39. public:
  40.     char *tittle;
  41.     char *lateral_text;
  42.     char *button_text;
  43.     char *sections_titles[MAX_SECTIONS];
  44.     int   section_count;
  45.  
  46.     CArr <char *> strings[MAX_SECTIONS];
  47.  
  48.  
  49.     int   first_in_section[MAX_SECTIONS];
  50.     int    last_in_section[MAX_SECTIONS];
  51.     
  52.     CArr <int> selected[MAX_SECTIONS];
  53.     char   selected_count[MAX_SECTIONS];
  54.     char   section_mode[MAX_SECTIONS];
  55. };
  56.  
  57. // Setting up Selector Dialog
  58. //
  59. // Setting modes:
  60. //   MUST_SELECT    at least one selection has to be done in the section
  61. //   SINGLE_SELECT  only one selection can be done. The selection is stored in selected[][0]
  62. //   MULTIPLE_SELECT The selection is stored in selected[section][] con selected_count[]
  63. int  OpenSelectorDialog(HWND hWnd, HINSTANCE hInstance, TSelectorDialog *settings);
  64. void ResetSelections(TSelectorDialog *settings);
  65.  
  66. #endif DIALOG_SELECTOR_H